import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class EditFormData {

    public void editData(WebDriver driver, String cssSelector, String newData) {

        WebElement tempEditData = driver.findElement(By.cssSelector(cssSelector));
        tempEditData.clear();
        tempEditData.sendKeys(newData);
    }
}
